<!--
 * @Description: table
 * @Author: rendc
 * @Date: 2021-08-04 14:10:15
 * @LastEditors: rendc
 * @LastEditTime: 2021-08-04 14:16:56
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>table</title>
</head>

<body>
  <div>
    <table align="center">
      <caption>
        名单
      </caption>
      <colgroup>
        <col span="1" style="background-color: tomato;">
        <col>
        <col style=" background-color: rgb(221, 255, 71);">
      </colgroup>
      <tr>
        <th>姓名</th>
        <th>性别</th>
        <th>年龄</th>
      </tr>
      <tr>
        <td>larry</td>
        <td>男</td>
        <td>28</td>
      </tr>
      <tr>
        <td>terry</td>
        <td>男</td>
        <td>21</td>
      </tr>
    </table>
  </div>
</body>

</html>